//
//  ViewController.m
//  WP_Movie
//
//  Created by GZCP1897 on 17/1/20.
//  Copyright © 2017年 GZCP1897. All rights reserved.
//

#import "ViewController.h"
#import "MovieManager.h"

@interface ViewController ()

@property(nonatomic, strong)MovieManager *mana;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    NSString *path = [[NSBundle mainBundle] pathForResource:@"example_mp4" ofType:@"mp4"];
    NSURL *url = [NSURL fileURLWithPath:path];
    MovieManager *manager = [[MovieManager alloc] init];
    self.mana = manager;
    [manager showMovieWithUrl:url play:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
